package com.yh.correct.dao;

import java.util.List;

import com.yh.correct.model.SysPermission;

/**
 * 用户权限dao层接口
 * @author Administrator
 *
 */
public interface ISysPermissionCustomMapper {
	/**
	 * 根据用户id查询菜单
	 * 
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	List<SysPermission> findMenuListByUserId(int userid) throws Exception;
	/**
	 * 根据用户id查询权限url
	 * 
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	List<SysPermission> findPermissionListByUserId(int userid) throws Exception;
}
